<div id="bg" class="my_budget_style">
    <h1>My Budget Plan</h1>
    <?php echo anchor(base_url() . 'budget_manager/new_budget', 'Plan New Budget'); ?>

    <label hidden id="link_delete_budget"><?php echo base_url('budget_manager/delete_budget') ?></label>

    <br/><br/>

    <?php if (isset($myBudget)): ?>
        <button type="submit" id="mark_budget">Mark All / Un-mark All</button>
        <button type="submit" id="delete_budget">Delete All Marked</button>
        <table id="myTable1" class="tablesorter">
            <thead>
                <tr>
                    <th></th>
                    <th>Budget Name</th>
                    <th>Lifestyle</th>
                    <th>School type</th>
                    <th>Destination</th>
                    <th>Course genre</th>
                    <th>Total Cost</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($myBudget as $eachBudgetArray): ?>
                    <tr>
                        <?php foreach ($eachBudgetArray as $eachBudget): ?>
                            <td><?php echo $eachBudget; ?></td>
                        <?php endforeach; ?>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>

    <?php else: ?>

        <label id="no_budget_label">You don't have any budget planned yet.</label>

    <?php endif; ?>

</div>